from app.core.scheduler import scheduler
from app.schemas.base import R


class SchedulerService:
    def __init__(self):
        self.scheduler = scheduler

    async def add_job(self):
        await self.scheduler.add_job("app.tasks.test_job:print_hello_world", 'interval', seconds=3)
        return R.ok()